package NET;
import java.io.Serializable;


public class NetPlayer implements Serializable {
	
	private static final long serialVersionUID = -2906224835468479985L;

	public static enum State {
	      NORMAL, DYING, DEAD, SLEEPING
	   }
	private double x, y, z, velocity;
	private String uniqueID;
	private State state;

	public NetPlayer(double x, double y, double z, double velocity, State state, String uniqueID){
		this.setX(x);
		this.setY(y);
		this.setZ(z);
		this.setVelocity(velocity);
		this.setState(state);
		this.setUniqueID(uniqueID);
	}

	public double getX() {
		return x;
	}

	public void setX(double x) {
		this.x = x;
	}

	public double getY() {
		return y;
	}

	public void setY(double y) {
		this.y = y;
	}

	public double getZ() {
		return z;
	}

	public void setZ(double z) {
		this.z = z;
	}

	public double getVelocity() {
		return velocity;
	}

	public void setVelocity(double velocity) {
		this.velocity = velocity;
	}

	public String getUniqueID() {
		return uniqueID;
	}

	public void setUniqueID(String uniqueID) {
		this.uniqueID = uniqueID;
	}

	public State getState() {
		return state;
	}

	public void setState(State state) {
		this.state = state;
	}
	public String toString() {
	   return this.getClass().getSimpleName() + getUniqueID()+  " X:" + getX() + " Y:" + getY() + " Z:" + getZ() + " Velocity:" + getVelocity() + " state:" + getState();
	}

}
